const resizeWin = () => {
  var winW = window.innerWidth;
  document.getElementById('width').style.fontSize = winW / 10 + 'px';
};

resizeWin();

window.onresize = () => {
  resizeWin();
};
